﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataAccess.Core.Interfaces;
using DataAccess.SqlServer;
using System.Configuration;

namespace MVCPets.Data
{
	public static class DataAccess
	{
		private static IDataStore _dStore;
		public static IDataStore DataStore
		{
			get
			{
				if (_dStore == null)
					_dStore = SqlServerConnection.GetDataStore(ConfigurationManager.ConnectionStrings["MVCPetsConnectionString"].ConnectionString);

				return _dStore;
			}
		}
	}
}